package five_row;

public class RightUp extends five_row{
	public static int RightUp(int tmp, int index, int Object, int i, int j) {

		for (int x = 1; x <= index; x++) {
			i--;
			j++;
			if (arr[i][j] == Object) {
				tmp++;
				continue;
			} else {
				break;
			}

		}
		if (tmp < 5) {
			return -1;
		}
		if(tmp > 5 && Object == 1){
			return 1;
		}
		return 0;
	}
}
